﻿using RndMaterialDisposalService.Models.Entitys;

namespace RndMaterialDisposalService.Models.RequestModel
{
    /// <summary>
    /// 需要保存的字段
    /// 发起的时候返回的空模型
    /// 前端发起，审批保存数据接受模型
    /// </summary>
    public class MaterialDisposalFormData
    {
        /// <summary>
        /// 
        /// </summary>
        public FormHeader FormHeader { get; set; } = new FormHeader();

        /// <summary>
        /// 
        /// </summary>
        public string? Applicant { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? ApplicantId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? ApplicantDate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? Organization { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? IsOutsourcing { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? DeptName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? DeptCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? ProjectName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? ProjectCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? Position { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? ProjectStatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? DisposalRemark { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string[]? IsCheck { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? IsChecklist1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? RemarkChecklist1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? IsChecklist2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? RemarkChecklist2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? IsChecklist3 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? RemarkChecklist3 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? IsChecklist4 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? RemarkChecklist4 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? DeptManager { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? DeptManagerId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? TotalDisposalCount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? TotalAmount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<MaterialInfoDetailModel>? MaterialInfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public MaterialDisposalTask5Model? Task5 { get; set; } = new MaterialDisposalTask5Model();
        /// <summary>
        /// 
        /// </summary>
        public MaterialDisposalTask6Model? Task6 { get; set; }= new MaterialDisposalTask6Model();

        /// <summary>
        /// 
        /// </summary>
        public List<Attachment> UploadFiles { get; set; } = new List<Attachment>();
    }
    public class MaterialInfoDetailModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int? Key { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? Model { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? Type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? Unit { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? DisposalCount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? Price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? TotalPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? Source { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? Place { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? RecycleRemark { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? RecycleRecord { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? DisposalRealCount { get; set; }

    }
    public class MaterialDisposalTask5Model
    {

        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime? ProcessDate { get; set; }
        /// <summary>
        /// 申请报废物品分解拆卸完成情况
        /// </summary>
        public string[]? DisposalStatus { get; set; }
    }
    public class MaterialDisposalTask6Model
    {
        /// <summary>
        /// 报废物料处理按排
        /// </summary>
        public string? DisposalPlan { get; set; }

    }
}

